﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="F207_DanhSachNhanSu.aspx.cs" Inherits="QuanLyNhanSu_F207_DanhSachNhanSu" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
<style type="text/css">
    .Tilehead
    {
        height: 25px;
        background-color: #059;
        color: #fff;
        font-size: 18px;
        padding: 3px 0 0 5px;
        font-weight: bold;
        margin-bottom: 10px;
        margin-top: 10px;
    }
    .dong
    {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow: hidden;
    }
    .input
    {
        width: 42%;
        margin: 10px 0 0 50px;
        overflow: hidden;
        font-size: 11px;
    }
    .tile
    {
        width: 130px;
        float: left;   
        font-weight: bold;
    }
    
    .textbox
    {
        margin:0 0 5px 10px;
        float: left; 
        overflow: hidden;       
    }
    .button
    {        
        margin: 20px 0 0 0;
        padding:0 0 0 50px;
        float: left;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<div id="main_content" style="border: 1px solid #222;">
        <div class="Tilehead">Danh sách nhân sự</div>
        <div class="dong" style="color: Red;"><asp:label id="m_lbl_lois" runat="server" CssClass="cssManField" /></div>
        <div class="dong" >
            <div class="input" style="float: left;">
                <div class="tile">Hoc và tên: </div>
                <div class="textbox"><asp:TextBox ID="m_txt_ho_ten" runat="server" Width="270px"></asp:TextBox></div>
                </div>
            <div class="input" style="float: left;">
                <div class="tile">Sinh nhật tháng: </div>
                <div class="textbox">
                    <asp:DropDownList ID="m_cbo_thang_sinh" runat="server" 
                        Width="150px" >
                        <asp:ListItem Selected="True" Value="0">Tất cả</asp:ListItem>
                        <asp:ListItem Value="1">1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                        <asp:ListItem>11</asp:ListItem>
                        <asp:ListItem>12</asp:ListItem>
                    </asp:DropDownList></div>
            </div>
        </div>
        <div class="dong" >
            <div class="input" style="float: left;">
                <div class="tile">Giới tính: </div>
                <div class="textbox"><asp:RadioButtonList ID="rdl_gender_check" runat="server" 
                        RepeatDirection="Horizontal" Width="167px">
                        <asp:ListItem Selected="True">All</asp:ListItem>
                        <asp:ListItem Value="Male">Nam</asp:ListItem>
                        <asp:ListItem Value="Female">Nữ</asp:ListItem>
                    </asp:RadioButtonList>
                    </div>
            </div>
            <div class="input" style="float: left;">
                <div class="tile">Cương vị: </div>
                <div class="textbox">
                    <asp:DropDownList ID="m_cbo_cuong_vi" runat="server" 
                        Width="150px"> 
                        <asp:ListItem Selected="True" Value="ALL">Tất cả</asp:ListItem>
                        <asp:ListItem Value="THANH_VIEN">Thành viên</asp:ListItem>
                        <asp:ListItem Value="GIANG_VIEN">Giảng viên</asp:ListItem>
                        <asp:ListItem Value="HOC_VIEN">Học viên</asp:ListItem>
                    </asp:DropDownList></div>
            </div>
        </div>
        <div class="dong" >
            <div class="input" style="float: left;">
                <div class="tile">Khoa ngành: </div>
                <div class="textbox"><asp:TextBox ID="m_txt_Khoanganh" runat="server" Width="270px"></asp:TextBox></div>
                </div>
            <div class="input" style="float: left;">
                <div class="tile">Trường: </div>
                <div class="textbox">
                    <asp:TextBox ID="m_txt_truong" runat="server" Width="270px"></asp:TextBox></div>
            </div>
        </div>
        <div class="dong" >
            <div class="input" style="float: left;">
                <div class="tile">Chức vụ: </div>
                <div class="textbox"><asp:DropDownList ID="m_cbo_chuc_vu" runat="server" 
                        Width="270px" ></asp:DropDownList></div>
                </div>
            <div class="input" style="float: left;">
                <div class="tile">Loại học viên: </div>
                <div class="textbox">
                    <asp:DropDownList ID="m_cbo_loai_hoc_vien" runat="server" 
                        Width="270px" ></asp:DropDownList></div>
            </div>
        </div>        
        <div class="dong">
            <div class="button" style="margin:20px 0 0 140px; width: 100px;" > 
                <asp:button id="m_btt_locdulieu" 
                            CssClass="cssButton" runat="server" Width="98px" Text="Lọc dữ liệu(l)"
                        CausesValidation="false"  Height="25px" 
                    onclick="m_btt_locdulieu_Click"  /></div>
            <div class="button"> <asp:button id="m_btt_xuatexcel" 
                            CssClass="cssButton" runat="server" Width="98px" Text="Xuất Excel(x)"
                        CausesValidation="false"  Height="25px" 
                    onclick="m_btt_xuatexcel_Click" /></div>
            <div class="button"> <asp:button id="m_btt_xoatrang" 
                            CssClass="cssButton" runat="server" Width="98px" Text="Xóa trắng(r)"
                        CausesValidation="false"  Height="25px" 
                    onclick="m_btt_xoatrang_Click"/></div>
        </div>
        <div class="Tilehead">Kết quả lọc dữ liệu: 
            <asp:Label ID="m_lbl_soketqua" runat="server" Text="0"></asp:Label></div>
        <div class="dong"><asp:label id="m_lbl_thong_bao" runat="server" CssClass="cssManField" /></div>        
        <div class="dong">
                    <asp:GridView ID="m_grv_dm_doi_tuong" AllowPaging="True" 
                runat="server" AutoGenerateColumns="False" 
                Width="100%" DataKeyNames="ID" 
                CellPadding="3" AllowSorting="True" BackColor="White" BorderColor="#999999" 
                        BorderStyle="None" BorderWidth="1px" GridLines="Vertical" >            
                  <AlternatingRowStyle BackColor="Gainsboro" />
                <Columns>                  
                     <%--<asp:CommandField SelectText="Sửa" ShowSelectButton="True" />--%>

                    <asp:TemplateField HeaderText="Xem">
                    <ItemTemplate>
                     <asp:LinkButton ID = "m_lbt_update"  runat="server"
                     CommandName="Update" Text="Xem" ToolTip="Xem" CausesValidation="false">
                     </asp:LinkButton>
                    </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>

                    <asp:TemplateField HeaderText="STT" ItemStyle-HorizontalAlign="Center">
                       <ItemTemplate><%# Container.DataItemIndex + 1 %></ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="5%"></ItemStyle>
                    </asp:TemplateField>
                    <asp:BoundField DataField="MA_DOI_TUONG" HeaderText="Mã đối tượng" 
                        ItemStyle-HorizontalAlign="Center" >
                     <ItemStyle Width="10%" />
                    </asp:BoundField>

                    <asp:BoundField DataField="HO_VA_TEN"  HeaderText="Họ và tên" 
                        ItemStyle-HorizontalAlign="Center" >
                        <ItemStyle HorizontalAlign="Left" Width="25%" />
                    </asp:BoundField>
                     <asp:BoundField DataField="NGAY_SINH" HeaderText="Ngày sinh">
                     <ItemStyle Width="10%" />
                     </asp:BoundField>
                     <asp:BoundField DataField="GIOI_TINH" HeaderText="Giới tính">
                     <ItemStyle Width="7%" />
                     </asp:BoundField>
                     <asp:BoundField DataField="THANH_VIEN" HeaderText="Thành viên">
                     <ItemStyle Width="10%" />
                     </asp:BoundField>
                     <asp:BoundField DataField="GIANG_VIEN" HeaderText="Giảng viên">
                     <ItemStyle Width="10%" />
                     </asp:BoundField>
                     <asp:BoundField DataField="KHOA_NGANH" HeaderText="Khoa ngành">
                     <ItemStyle Width="10%" />
                     </asp:BoundField>
                     <asp:BoundField DataField="TRUONG" HeaderText="Trường">
                     <ItemStyle Width="30%" />
                     </asp:BoundField>
                </Columns>
                  <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                  <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                  <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                  <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                <SelectedRowStyle CssClass="cssSelectedRow" BackColor="#008A8C" Font-Bold="True" 
                            ForeColor="White"></SelectedRowStyle>
                        <SortedAscendingCellStyle BackColor="#F1F1F1" />
                        <SortedAscendingHeaderStyle BackColor="#0000A9" />
                        <SortedDescendingCellStyle BackColor="#CAC9C9" />
                        <SortedDescendingHeaderStyle BackColor="#000065" />
            </asp:GridView>            

        </div>
    </div>
</asp:Content>

